package reflection.equals.instof;

import reflection.equals.correct.Order;
import reflection.equals.correct.VipOrder;
import org.junit.Assert;
import org.junit.Test;

public class SimpleInstanceOf {

	@Test
	public void test()
	{
		VipOrder vipOrder = new VipOrder(1L);
		Order order = new Order(1L);
		
		Assert.assertTrue(order instanceof org.interview.reflection.equals.correct.Order);
		Assert.assertTrue(vipOrder instanceof org.interview.reflection.equals.correct.Order);
		
		Assert.assertFalse(order instanceof org.interview.reflection.equals.correct.VipOrder);
		
	}
	
}
